// 页面语言点击事件
let leg = document.getElementById("language");
let oBox = document.getElementById("lag-box");
let oUl = document.getElementById("language-list");
leg.onclick = function(evn) {
	var e = evn || event;
	e.stopPropagation ? e.stopPropagation() : e.cancelBubble = true;
	oBox.style.display = "block";
}
let oli = oUl.children;
for (var i = 0; i < oli.length; i++) {
	oli[i].onclick = function() {
		leg.innerHTML = this.innerHTML;
	}
	document.onclick = function() {
		oBox.style.display = "none";
	}
}

// 密码可见
$("#onc").mousedown(function() {
	let aa = document.getElementById("pwd");
	aa.type = 'text';
	$("#onc").css('backgroundPositionX', '3px');
})
$("#onc").mouseup(function() {
	let aa = document.getElementById("pwd");
	aa.type = 'password';
	$("#onc").css('backgroundPositionX', '-97px');
});
